module.exports = {
  columns: {
    type: Object,
    default: function () {
      return [
        {
          label: '学段id',
          prop: 'id',
          fixed: true
        },
        {
          label: '学段名称',
          prop: 'sectionName',
          width: 300,
          sortable: true
        },
        {
          label: '年级',
          children: [
            {
              label: '一年级',
              prop: 'grade1'
            },
            {
              label: '二年级',
              prop: 'grade2'
            }
          ]
        }
      ]
    },
    name: '表格列',
    nameTip: 'label:表示列名，prop表示要显示数据行的字段名，children表示合并该列分成多少个子列(最多支持3个层级嵌套)',
    filedType: 'api'
  },

  data: {
    type: Object,
    default: function () {
      return [
        ['tw001', '小学', 680, 600],
        ['tw001', '小学', 620, 560],
        ['tw001', '小学', 600, 500]
      ]
    },
    name: '表格数据',
    filedType: 'api'
  },

  type: {
    type: Array,
    default: '',
    name: '样式类型',
    filedType: 'select',
    options: [
      {
        name: '基本样式',
        value: ''
      },
      {
        name: '选项卡样式',
        value: 'card'
      },
      {
        name: '卡片式',
        value: 'border-card'
      }
    ]
  },

  maxHeight: {
    type: String,
    default: 300,
    name: '表格高度',
    nameTip: '设置该值会使垂直滚动表格内容时表头固定',
    filedType: 'string'
  },

  fontSize: {
    type: String,
    default: '14px',
    name: '表格字体大小',
    filedType: 'string'
  },

  bgColor: {
    type: String,
    default: '',
    name: '表格背景色',
    filedType: 'color'
  },

  borderColor: {
    type: String,
    default: '#ebeef5',
    name: '边框颜色',
    filedType: 'color'
  },

  noXborder: {
    type: String,
    default: false,
    name: '无左右边框',
    filedType: 'switch'
  },

  cellPaddingY: {
    type: String,
    default: '10px',
    name: '单元格上下内边距',
    filedType: 'string'
  },

  cellPaddingX: {
    type: String,
    default: '10px',
    name: '单元格左右内边距',
    filedType: 'string'
  },

  headBg: {
    type: String,
    default: '#f5f7fa',
    name: '表格头背景色',
    filedType: 'color'
  },

  headColor: {
    type: String,
    default: '#333',
    name: '表格头文本颜色',
    filedType: 'color'
  },

  headFontSize: {
    type: String,
    default: '14px',
    name: '表格头字体大小',
    filedType: 'string'
  },

  noWrap: {
    type: Boolean,
    default: false,
    name: '表格文本不换行',
    filedType: 'switch'
  },

  detailUrl: {
    type: String,
    default: './inspect-detail.html',
    name: '详情url',
    filedType: 'string'
  },

  extent: {
    type: String,
    default: '80px',
    name: '详情宽度',
    nameTip: '只有存在详情链接时能设置它的文字宽度',
    filedType: 'string'
  },

  position: {
    type: String,
    default: 'center',
    name: '详情文字位置',
    nameTip: '只有存在详情链接时能设置它的文字位置',
    filedType: 'string'
  },

  detailColor: {
    type: String,
    default: '#0d76f5',
    name: '详情颜色',
    filedType: 'color'
  },

  custBorder: {
    type: String,
    default: false,
    name: '开启渐变色头部',
    filedType: 'switch'
  },
  borderRadius: {
    type: String,
    default: '20px',
    name: '边框圆角尺寸',
    filedType: 'string'
  },
  borderWidth: {
    type: String,
    default: '2px',
    name: '边框宽度',
    filedType: 'string'
  },
  trBkgColor: {
    type: String,
    default: 'transparent',
    name: '行背景色',
    filedType: 'string'
  },
  hoverBkgColor: {
    type: String,
    default: 'rgba(0,0,0,0.2)',
    name: '高亮行背景色',
    filedType: 'string'
  },
  customcolors: {
    type: Array,
    default () {
      return [
        'rgb(36,138,254)',
        'rgb(137,107,253)',
        '#031532'
      ]
    },
    name: '表格渐变色列表',
    nameTip: '前面俩是渐变色值，后面一个是表格背景色',
    filedType: 'list',
    subType: 'color',
    subDefault: '#031532',
    max: 3
  },
  custColors: {
    type: String,
    default: false,
    name: '开启列颜色自定义',
    filedType: 'switch'
  },
  colors: {
    type: Array,
    default () {
      return [
        '#fff',
        '#657df5',
        '#ffb336',
        '#4ac7ff',
        '#2bd3bd',
        '#96e388',
        '#fecd63'
      ]
    },
    name: '表格字体颜色列表',
    nameTip: '表格字体颜色列表',
    filedType: 'list',
    subType: 'color',
    subDefault: '#2bd3bd',
    max: 36
  }
}

// Helvetica Neue,,宋体,Arial,Helvetica,sans-serif
